package com.atstudy.reflect;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2023/1/10 10:05
 * @copyright: 博为峰
 */
public class RefDemo01 {
    public static void main(String[] args) throws ClassNotFoundException {
        //.class(字节码文件)对象  Class

        //方式一
        Student student = new Student();
        Class<? extends Student> aClass1 = student.getClass();
        //方式二
        Class<Student> aClass2 = Student.class;
        //方式三
        Class<?> aClass3 = Class.forName("com.atstudy.reflect.Student");
    }
}
